package io.renren.modules.store.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.store.dao.TStoreAccountDetailDao;
import io.renren.modules.store.entity.TStoreAccountDetailEntity;
import io.renren.modules.store.service.TStoreAccountDetailService;


@Service("tStoreAccountDetailService")
public class TStoreAccountDetailServiceImpl extends ServiceImpl<TStoreAccountDetailDao, TStoreAccountDetailEntity> implements TStoreAccountDetailService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TStoreAccountDetailEntity> page = this.page(
                new Query<TStoreAccountDetailEntity>().getPage(params),
                new QueryWrapper<TStoreAccountDetailEntity>()
                .eq("account_unit_id",params.get("id"))
        );

        return new PageUtils(page);
    }

}